package com.bw.parkingspace_module.parkingedit.adapter

import android.graphics.Color
import com.bw.parkingspace_module.R
import com.bw.parkingspace_module.parkingedit.entity.ColorEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class ParkingEditColorAdapter : BaseQuickAdapter<ColorEntity, BaseViewHolder>(R.layout.item_color) {

    override fun convert(holder: BaseViewHolder, item: ColorEntity) {
        holder.setBackgroundColor(R.id.item_color_view,Color.parseColor(item.colorValue))
    }
}